/*
 * @Description:  路由界面
 * @Author: Myruun
 * @Date: 2021-04-19 15:52:22
 * @LastEditors: Myruun
 * @LastEditTime: 2021-08-26 17:43:51
 * @FilePath: \serve\router.js
 */

const task = require('./controller/task.js');
const sentence = require('./controller/sentence.js');
const memo = require('./controller/memo.js');
const resource = require('./controller/resource.js');
const resourceType = require('./controller/resourceType.js');
const note = require('./controller/note.js');
const routers = require('./controller/routers.js');
const systems = require('./controller/system.js');

const router = require('koa-router')();

// 任务
router.post('/task/index', task.Index);
// 添加任务
router.post('/task/add', task.add);

// 句子
router.post('/sentence/index', sentence.Index);
// 添加句子
router.post('/sentence/add', sentence.add);

// 备忘录
router.post('/memo/index', memo.Index);
// 添加备忘录
router.post('/memo/add', memo.add);

// 网址收藏
router.post('/resource/index', resource.Index);
// 添加网址
router.post('/resource/add', resource.add);

// 网址类型
router.post('/resourceType/index', resourceType.Index);
// 添加网址类型
router.post('/resourceType/add', resourceType.add);

// 网址类型
router.post('/note/index', note.Index);
// 添加网址类型
router.post('/note/add', note.add);


// 路由列表
router.post('/routers/index', routers.Index);
// 添加路由
router.post('/routers/add', routers.add);


// 其他字段列表
router.post('/systems/index', systems.Index);
// 添加其他字段
router.post('/systems/add', systems.add);


module.exports = router;
